package com.gy.hsim.bservice.framework.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 系统配置文件相关配置信息实体类
 * 
 * @author Lee
 * 
 */
@Component("system")
public class SystemConfig {

	@Value("${solr.serverUrl}")
	private String serverUrl;
	
	@Value("${authentic.url}")
	private String url;
	
	@Value("${operatorAuthentic.url}")
	private String operatorAuthenticUrl;
	
	@Value("${authentic.accessid}")
	private String accessID;
	
	@Value("${authentic.accesspwd}")
	private String accessPwd;
	
	@Value("${rabbitmq.hostaddr}")
	private String mqHostaddr;
	
	@Value("${rabbitmq.username}")
	private String mqUserName;
	
	@Value("${rabbitmq.passwd}")
	private String mqPasswd;
	
	@Value("${rabbitmq.port}")
	private String mqPort;
	
	@Value("${rabbitmq.chatrecord.queuename}")
	private String chatrecordQueueName;
	
	@Value("${rabbitmq.chatrecord.exchange}")
	private String chatrecordExchangeName;
	
	@Value("${rabbitmq.chatrecord.routerKey}")
	private String chatrecordRouterKeyName;
	
	//增加一个队列用于存放推送消息  begin
	@Value("${rabbitmq.chatrecord.push.queuename}")
	private String chatPushRecordQueueName;
	
	@Value("${rabbitmq.chatrecord.push.exchange}")
	private String chatPushRecordExchangeName;
	
	@Value("${rabbitmq.chatrecord.push.routerKey}")
	private String chatPushRecordRouterKeyName;
	//增加一个队列用于存放推送消息  end
	
	//增加一个队列用于存放群发消息  begin
	@Value("${rabbitmq.chatrecord.group.queuename}")
	private String chatGroupRecordQueueName;
	
	@Value("${rabbitmq.chatrecord.group.exchange}")
	private String chatGroupRecordExchangeName;
	
	@Value("${rabbitmq.chatrecord.group.routerKey}")
	private String chatGroupRecordRouterKeyName;
	//增加一个队列用于存放群发消息 end
	
	//添加入群验证信息超时时间
	@Value("${system.overdueDate}")
	private String overdueDate;
		
	//设置群成员数上限
	@Value("${system.groupMemberLimit}")
	private String groupMemberLimit;
	
	//设置用户创建群数上限
	@Value("${system.groupCreateLimit}")
	private String groupCreateLimit;
	
	//设置某个用户所在的群数上限
	@Value("${system.groupJoinLimit}")
	private String groupJoinLimit;
	
	//设置群管理员数上限
	@Value("${system.groupManagerLimit}")
	private String groupManagerLimit;
	
	//设置用户创建分组数上限
	@Value("${system.teamLimit}")
	private String teamLimit;
	
	//消息网关地址
	@Value("${psi.url}")
	private String psiUrl;
	
	
	public String getTeamLimit() {
		return teamLimit;
	}

	public void setTeamLimit(String teamLimit) {
		this.teamLimit = teamLimit;
	}

	public String getOperatorAuthenticUrl() {
		return operatorAuthenticUrl;
	}

	public void setOperatorAuthenticUrl(String operatorAuthenticUrl) {
		this.operatorAuthenticUrl = operatorAuthenticUrl;
	}

	public String getOverdueDate() {
		return overdueDate;
	}

	public void setOverdueDate(String overdueDate) {
		this.overdueDate = overdueDate;
	}
		
	public String getGroupMemberLimit() {
		return groupMemberLimit;
	}

	public void setGroupMemberLimit(String groupMemberLimit) {
		this.groupMemberLimit = groupMemberLimit;
	}

	public String getGroupCreateLimit() {
		return groupCreateLimit;
	}

	public void setGroupCreateLimit(String groupCreateLimit) {
		this.groupCreateLimit = groupCreateLimit;
	}

	public String getGroupJoinLimit() {
		return groupJoinLimit;
	}

	public void setGroupJoinLimit(String groupJoinLimit) {
		this.groupJoinLimit = groupJoinLimit;
	}

	public String getGroupManagerLimit() {
		return groupManagerLimit;
	}

	public void setGroupManagerLimit(String groupManagerLimit) {
		this.groupManagerLimit = groupManagerLimit;
	}
		
	public String getPsiUrl() {
		return psiUrl;
	}

	public void setPsiUrl(String psiUrl) {
		this.psiUrl = psiUrl;
	}

	public String getChatPushRecordQueueName() {
		return chatPushRecordQueueName;
	}

	public void setChatPushRecordQueueName(String chatPushRecordQueueName) {
		this.chatPushRecordQueueName = chatPushRecordQueueName;
	}

	public String getChatPushRecordExchangeName() {
		return chatPushRecordExchangeName;
	}

	public void setChatPushRecordExchangeName(String chatPushRecordExchangeName) {
		this.chatPushRecordExchangeName = chatPushRecordExchangeName;
	}

	public String getChatPushRecordRouterKeyName() {
		return chatPushRecordRouterKeyName;
	}

	public void setChatPushRecordRouterKeyName(String chatPushRecordRouterKeyName) {
		this.chatPushRecordRouterKeyName = chatPushRecordRouterKeyName;
	}
			
	@Value("${rabbitmq.bs.queuename}")
	private String bsQueueName;
	
	@Value("${rabbitmq.bs.exchange}")
	private String bsExchangeName;
	
	@Value("${rabbitmq.bs.routerKey}")
	private String bsRouterKeyName;
	
	@Value("${rabbitmq.bs.channelCount}")
	private int bsChannelCount;
	
	@Value("${chatRecordConsumer.poolsize}")
	private String chatRecordConsumerPoolSize;
	
	@Value("${chatRecordInsert.poolsize}")
	private String chatRecordInsertPoolSize;
	
	@Value("${system.addfriend}")
	private String friendAdd;
	
	@Value("${system.rejectfriend}")
	private String friendReject;
	
	@Value("${system.deletefriend}")
	private String friendDelete;
	
	

	@Value("${charRecordFile.size}")
	private long charRecordFileSize;
	
	@Value("${need_aging_chatRecordData}")
	private boolean needAgingChatRecordData;
	
	@Value("${aging_chatRecord_days}")
	private int agingChatRecordDays;
	
	@Value("${authentic.from}")
	private String from;
	
	@Value("${userc.url}")
	private String usercUrl;
	
	
	public boolean isNeedAgingChatRecordData() {
		return needAgingChatRecordData;
	}

	public void setNeedAgingChatRecordData(boolean needAgingChatRecordData) {
		this.needAgingChatRecordData = needAgingChatRecordData;
	}

	public int getAgingChatRecordDays() {
		return agingChatRecordDays;
	}

	public void setAgingChatRecordDays(int agingChatRecordDays) {
		this.agingChatRecordDays = agingChatRecordDays;
	}

	public String getFriendAdd() {
		return friendAdd;
	}

	public void setFriendAdd(String friendAdd) {
		this.friendAdd = friendAdd;
	}

	public String getFriendReject() {
		return friendReject;
	}

	public void setFriendReject(String friendReject) {
		this.friendReject = friendReject;
	}

	public String getFriendAccept() {
		return friendAccept;
	}

	public void setFriendAccept(String friendAccept) {
		this.friendAccept = friendAccept;
	}

	@Value("${system.acceptfriend}")
	private String friendAccept;
	
	
	public String getBsQueueName() {
		return bsQueueName;
	}

	public void setBsQueueName(String bsQueueName) {
		this.bsQueueName = bsQueueName;
	}

	public String getMqHostaddr() {
		return mqHostaddr;
	}

	public void setMqHostaddr(String mqHostaddr) {
		this.mqHostaddr = mqHostaddr;
	}

	public String getMqUserName() {
		return mqUserName;
	}

	public void setMqUserName(String mqUserName) {
		this.mqUserName = mqUserName;
	}

	public String getMqPasswd() {
		return mqPasswd;
	}

	public void setMqPasswd(String mqPasswd) {
		this.mqPasswd = mqPasswd;
	}

	public String getMqPort() {
		return mqPort;
	}

	public void setMqPort(String mqPort) {
		this.mqPort = mqPort;
	}

	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getAccessID() {
		return accessID;
	}

	public void setAccessID(String accessID) {
		this.accessID = accessID;
	}

	public String getAccessPwd() {
		return accessPwd;
	}

	public void setAccessPwd(String accessPwd) {
		this.accessPwd = accessPwd;
	}

	public String getServerUrl() {
		return serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	public String getChatRecordConsumerPoolSize() {
		return chatRecordConsumerPoolSize;
	}

	public void setChatRecordConsumerPoolSize(String chatRecordConsumerPoolSize) {
		this.chatRecordConsumerPoolSize = chatRecordConsumerPoolSize;
	}

	public String getChatRecordInsertPoolSize() {
		return chatRecordInsertPoolSize;
	}

	public void setChatRecordInsertPoolSize(String chatRecordInsertPoolSize) {
		this.chatRecordInsertPoolSize = chatRecordInsertPoolSize;
	}

	public long getCharRecordFileSize() {
		return charRecordFileSize;
	}

	public void setCharRecordFileSize(long charRecordFileSize) {
		this.charRecordFileSize = charRecordFileSize;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getUsercUrl() {
		return usercUrl;
	}

	public void setUsercUrl(String usercUrl) {
		this.usercUrl = usercUrl;
	}

	public String getChatrecordQueueName() {
		return chatrecordQueueName;
	}

	public void setChatrecordQueueName(String chatrecordQueueName) {
		this.chatrecordQueueName = chatrecordQueueName;
	}

	public String getChatrecordExchangeName() {
		return chatrecordExchangeName;
	}

	public void setChatrecordExchangeName(String chatrecordExchangeName) {
		this.chatrecordExchangeName = chatrecordExchangeName;
	}

	public String getChatrecordRouterKeyName() {
		return chatrecordRouterKeyName;
	}

	public void setChatrecordRouterKeyName(String chatrecordRouterKeyName) {
		this.chatrecordRouterKeyName = chatrecordRouterKeyName;
	}

	public String getBsExchangeName() {
		return bsExchangeName;
	}

	public void setBsExchangeName(String bsExchangeName) {
		this.bsExchangeName = bsExchangeName;
	}

	public String getBsRouterKeyName() {
		return bsRouterKeyName;
	}

	public void setBsRouterKeyName(String bsRouterKeyName) {
		this.bsRouterKeyName = bsRouterKeyName;
	}

	public int getBsChannelCount() {
		return bsChannelCount;
	}

	public void setBsChannelCount(int bsChannelCount) {
		this.bsChannelCount = bsChannelCount;
	}
	
	public String getFriendDelete() {
		return friendDelete;
	}

	public void setFriendDelete(String friendDelete) {
		this.friendDelete = friendDelete;
	}

	public String getChatGroupRecordQueueName() {
		return chatGroupRecordQueueName;
	}

	public void setChatGroupRecordQueueName(String chatGroupRecordQueueName) {
		this.chatGroupRecordQueueName = chatGroupRecordQueueName;
	}

	public String getChatGroupRecordExchangeName() {
		return chatGroupRecordExchangeName;
	}

	public void setChatGroupRecordExchangeName(String chatGroupRecordExchangeName) {
		this.chatGroupRecordExchangeName = chatGroupRecordExchangeName;
	}

	public String getChatGroupRecordRouterKeyName() {
		return chatGroupRecordRouterKeyName;
	}

	public void setChatGroupRecordRouterKeyName(String chatGroupRecordRouterKeyName) {
		this.chatGroupRecordRouterKeyName = chatGroupRecordRouterKeyName;
	}
	
			
}
